package entity.bean;

/**
 *
 * @author 52571783
 */
public class PurchaseRec {
    // Data Members
    private int id;
    private String time;
    private int noOfTickets;
    private int price;
    private String userID;
    private int points;
    private boolean refunded;
    
    public PurchaseRec(){
    }
    
    public PurchaseRec(int noOfTickets){
        this.noOfTickets = noOfTickets;
        this.price = 0;
        userID = null;
        points = 0;
    }
    
    // Setter functions
    public void setId(int value){
        id = value;
    }
    
    public void setTime(String value){
        time = value;
    }
    
    public void setNoOfTickets(int value){
        noOfTickets = value;
    }
    
    public void setPrice(int value){
        price = value;
    }
    
    public void setUserID(String value){
        userID = value;
    }
    
    public void setPoints(int value){
        points = value;
    }
    
    public void setRefunded(boolean value){
        refunded = value;
    }
    
    // Getter functions
    public int getId(){
        return id;
    }
    
    public String getTime(){
        return time;
    }
    
    public int getNoOfTickets(){
        return noOfTickets;
    }
    
    public int getPrice(){
        return price;
    }
    
    public String getUserID(){
        return userID;
    }
    
    public int getPoints(){
        return points;
    }
    
    public boolean getRefunded(){
        return refunded;
    }
}
